package xcmg.device.service.vo.purchase;

public class BuyPlanSupplierVO {

    private String supplierSapCode;

    private String supplierName;

    public BuyPlanSupplierVO(String supplierSapCode, String supplierName) {
        this.supplierSapCode = supplierSapCode;
        this.supplierName = supplierName;
    }

    public String getSupplierSapCode() {
        return supplierSapCode;
    }

    public void setSupplierSapCode(String supplierSapCode) {
        this.supplierSapCode = supplierSapCode;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof BuyPlanSupplierVO)) {
            return false;
        }
        if (obj == this) {
            return true;
        }
        BuyPlanSupplierVO supplierVO = (BuyPlanSupplierVO) obj;
        return supplierVO.supplierSapCode.equals(this.supplierSapCode);
    }

    @Override
    public int hashCode() {
        int result = 17;
        result = result * 31 + supplierSapCode.hashCode();
        return result;
    }
}